package org.example;

public class IntermediaryCglidProxyFactory {
    private static IntermediaryMethodInterceptor callback=new IntermediaryMethodInterceptor();

    public static <T> T create(Class<T> target){
        Enhancer enhancer=new Enhancer();
        enhancer.setCallback(callback);
        enhancer.setSuperclass(target);
        return (T)enhancer.create();
    }
}
